exp
Calculate the index of e
exp()
function calculates the exponent of e.
In this example, we will apply the exp() function to different numbers:
<?php echo ( exp ( 1 ) ) ; echo ( exp ( - 1 ) ) ; echo ( exp ( 5 ) ) ; echo ( exp ( 10 ) ) ?>
Try it yourself
exp ( x )
parameter | describe |
---|---|
x | Required. A number. |
Returns the x -power value of e. .